NeXT TypedStream Data | 1995-06-12 | 4KB | 72 lines
streamtyped
IBObjectData
Object
CustomObject
SparseLifeView
TextField
Control
Responder
Title
Helvetica
[18@]
CustomView
StaticSparseLifeView
NXColorWell
TextFieldCell
ActionCell
Sparse-Life
Helvetica-Bold$
Sparse by Dave, Life by Sam
Young
Button
ButtonCell
NXImage
NXCachedImageRep
NXImageRep
iisssss
iiiiii
Matrix
@:@iiii
Size8
Size8H
Size6
Size6H
Size4
Size4H
ff@@#::s
Radio
Size8P
5A fast implementation of the classic Life simulation.
Times-Bold
by David Bau, based on the module by Sam Streeper.
If you like it, send something interesting to Dave at
777 South Avenue, Weston, MA 02193.
Times-Roman
Stamp
"777 South Avenue, Weston, MA 02193
A cell survives to the next generation only if has two or three neighbors. An empty square grows a cell in the next generation if surrounded by exactly three cells in the current generation. These rules are applied using a pretty fast sparse algorithm that ignores empty space.